package com.yn.common.utils;

import com.yn.common.exception.TransitException;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.digest.DigestUtils;

/**
 * 异常通用工具类
 *
 */
@Slf4j
public class ExceptionUtil {
    public static void checkBooleanException(Boolean blg, String message,String methodName) {
      if (blg) {
          log.error("{}:{}",methodName,message);
          throw new TransitException(message);
      }
    }
}
